from datetime import datetime
from st2common.runners.base_action import Action

class pythonaction1(Action):
    def run(self, number, msg):
        currTime = str(datetime.now())
        print(currTime)
        print("messge content:", msg)
        
        if number != '1':
            return (False, "action1 error number %s" % number)
        print(msg)
        return (True, "%s: %s" % (number, msg))

